package model;

/**
 * JsfOrderId entity. @author MyEclipse Persistence Tools
 */

public class JsfOrderId implements java.io.Serializable {

	// Fields

	private JsfClass jsfClass;
	private JsfClient jsfClient;

	// Constructors

	/** default constructor */
	public JsfOrderId() {
	}

	/** full constructor */
	public JsfOrderId(JsfClass jsfClass, JsfClient jsfClient) {
		this.jsfClass = jsfClass;
		this.jsfClient = jsfClient;
	}

	// Property accessors

	public JsfClass getJsfClass() {
		return this.jsfClass;
	}

	public void setJsfClass(JsfClass jsfClass) {
		this.jsfClass = jsfClass;
	}

	public JsfClient getJsfClient() {
		return this.jsfClient;
	}

	public void setJsfClient(JsfClient jsfClient) {
		this.jsfClient = jsfClient;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof JsfOrderId))
			return false;
		JsfOrderId castOther = (JsfOrderId) other;

		return ((this.getJsfClass() == castOther.getJsfClass()) || (this
				.getJsfClass() != null && castOther.getJsfClass() != null && this
				.getJsfClass().equals(castOther.getJsfClass())))
				&& ((this.getJsfClient() == castOther.getJsfClient()) || (this
						.getJsfClient() != null
						&& castOther.getJsfClient() != null && this
						.getJsfClient().equals(castOther.getJsfClient())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getJsfClass() == null ? 0 : this.getJsfClass().hashCode());
		result = 37 * result
				+ (getJsfClient() == null ? 0 : this.getJsfClient().hashCode());
		return result;
	}

}